package com.kevin.j2eeToolBox.patterns.observer;

import java.util.Observer;

import org.junit.Test;

public class ObserverTest {

	@Test
	public void testObserver() {

		ObservableManager manager = new ObservableManager();

		Observer observer1 = new Observer1();
		Observer observer2 = new Observer2();

		manager.SetChanged();

		manager.addObserver(observer1);
		manager.addObserver(observer2);

		manager.notifyObservers(new Integer(5));
	}
}
